<?php
namespace app\admin\model;


use think\exception\ErrorException;
use think\Model;

class Admin extends Common
{

    public function login(string $username,string $password)
    {
        return $this->where('username',$username)
            ->where('password',md5($password))->find();
    }

}